package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_OperateAccountTransfer", catalog="Id")
public class TcwOperateAccountTransfer extends BaseEntity<TcwOperateAccountTransfer> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="tinyint")
	private Integer type;
	@YsField(nameDataBase="SourceId", nameJava="sourceId", typeDataBase="bigint")
	private Long sourceId;
	@YsField(nameDataBase="VgsbmFrom", nameJava="vgsbmFrom", typeDataBase="varchar")
	private String vgsbmFrom;
	@YsField(nameDataBase="VgsjcFrom", nameJava="vgsjcFrom", typeDataBase="varchar")
	private String vgsjcFrom;
	@YsField(nameDataBase="VgsbmTo", nameJava="vgsbmTo", typeDataBase="varchar")
	private String vgsbmTo;
	@YsField(nameDataBase="VgsjcTo", nameJava="vgsjcTo", typeDataBase="varchar")
	private String vgsjcTo;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Vjylx", nameJava="vjylx", typeDataBase="varchar")
	private String vjylx;
	@YsField(nameDataBase="Vbz", nameJava="vbz", typeDataBase="varchar")
	private String vbz;
	@YsField(nameDataBase="TypeAccount", nameJava="typeAccount", typeDataBase="tinyint")
	private Integer typeAccount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwOperateAccountTransfer setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TcwOperateAccountTransfer setType(Integer type) {
		this.type = type;
		return this;
	}
	public Long getSourceId() {
		return sourceId;
	}
	public TcwOperateAccountTransfer setSourceId(Long sourceId) {
		this.sourceId = sourceId;
		return this;
	}
	public String getVgsbmFrom() {
		return vgsbmFrom;
	}
	public TcwOperateAccountTransfer setVgsbmFrom(String vgsbmFrom) {
		this.vgsbmFrom = vgsbmFrom;
		return this;
	}
	public String getVgsjcFrom() {
		return vgsjcFrom;
	}
	public TcwOperateAccountTransfer setVgsjcFrom(String vgsjcFrom) {
		this.vgsjcFrom = vgsjcFrom;
		return this;
	}
	public String getVgsbmTo() {
		return vgsbmTo;
	}
	public TcwOperateAccountTransfer setVgsbmTo(String vgsbmTo) {
		this.vgsbmTo = vgsbmTo;
		return this;
	}
	public String getVgsjcTo() {
		return vgsjcTo;
	}
	public TcwOperateAccountTransfer setVgsjcTo(String vgsjcTo) {
		this.vgsjcTo = vgsjcTo;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TcwOperateAccountTransfer setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public String getVjylx() {
		return vjylx;
	}
	public TcwOperateAccountTransfer setVjylx(String vjylx) {
		this.vjylx = vjylx;
		return this;
	}
	public String getVbz() {
		return vbz;
	}
	public TcwOperateAccountTransfer setVbz(String vbz) {
		this.vbz = vbz;
		return this;
	}
	public Integer getTypeAccount() {
		return typeAccount;
	}
	public TcwOperateAccountTransfer setTypeAccount(Integer typeAccount) {
		this.typeAccount = typeAccount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwOperateAccountTransfer setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwOperateAccountTransfer setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwOperateAccountTransfer setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwOperateAccountTransfer tcwOperateAccountTransfer(
		Integer type,
		Long sourceId,
		String vgsbmFrom,
		String vgsjcFrom,
		String vgsbmTo,
		String vgsjcTo,
		BigDecimal amount,
		String vjylx,
		String vbz,
		Integer typeAccount,
		Integer status
			) {
		TcwOperateAccountTransfer entity = new TcwOperateAccountTransfer();
		entity.setType(type);
		entity.setSourceId(sourceId);
		entity.setVgsbmFrom(vgsbmFrom);
		entity.setVgsjcFrom(vgsjcFrom);
		entity.setVgsbmTo(vgsbmTo);
		entity.setVgsjcTo(vgsjcTo);
		entity.setAmount(amount);
		entity.setVjylx(vjylx);
		entity.setVbz(vbz);
		entity.setTypeAccount(typeAccount);
		entity.setStatus(status);
		return entity;
	}
}